package nimble.commons;

/**
 * Created by Max Woods on 2017/6/27.
 */
public class StringUtils {

    public static final String SPACE = org.apache.commons.lang3.StringUtils.SPACE;

    public static final String EMPTY = org.apache.commons.lang3.StringUtils.EMPTY;

    public static final String LF = org.apache.commons.lang3.StringUtils.LF;

    public static final String CR = org.apache.commons.lang3.StringUtils.CR;

    public static final int INDEX_NOT_FOUND = org.apache.commons.lang3.StringUtils.INDEX_NOT_FOUND;

    public static boolean isEmpty(final CharSequence cs) {
        return org.apache.commons.lang3.StringUtils.isEmpty(cs);
    }

    public static boolean isNotEmpty(final CharSequence cs) {
        return org.apache.commons.lang3.StringUtils.isNotEmpty(cs);
    }

    public static boolean isAnyEmpty(final CharSequence... css) {
        return org.apache.commons.lang3.StringUtils.isAnyEmpty(css);
    }

    public static boolean isNoneEmpty(final CharSequence... css) {
        return org.apache.commons.lang3.StringUtils.isNoneEmpty(css);
    }

    public static boolean isAllEmpty(final CharSequence... css) {
        return org.apache.commons.lang3.StringUtils.isAllEmpty(css);
    }

    public static boolean isBlank(final CharSequence cs) {
        return org.apache.commons.lang3.StringUtils.isBlank(cs);
    }

    public static boolean isNotBlank(final CharSequence cs) {
        return org.apache.commons.lang3.StringUtils.isNotBlank(cs);
    }

    public static boolean isAnyBlank(final CharSequence... css) {
        return org.apache.commons.lang3.StringUtils.isAnyBlank(css);
    }

    public static boolean isNoneBlank(final CharSequence... css) {
        return org.apache.commons.lang3.StringUtils.isNoneBlank(css);
    }

    public static boolean isAllBlank(final CharSequence... css) {
        return org.apache.commons.lang3.StringUtils.isAnyBlank(css);
    }

    public static String trim(final String str) {
        return org.apache.commons.lang3.StringUtils.trim(str);
    }

    public static String trimeToNull(final String str) {
        return org.apache.commons.lang3.StringUtils.trimToNull(str);
    }

    public static String trimeToEmpty(final String str) {
        return org.apache.commons.lang3.StringUtils.trimToEmpty(str);
    }

    public static String truncate(final String str, final int maxWidth) {
        return org.apache.commons.lang3.StringUtils.truncate(str, maxWidth);
    }

    public static String truncate(final String str, final int offset, final int maxWidth) {
        return org.apache.commons.lang3.StringUtils.truncate(str, offset, maxWidth);
    }

    public static String strip(final String str) {
        return org.apache.commons.lang3.StringUtils.strip(str);
    }

    public static String strip(final String str, final String stripChars) {
        return org.apache.commons.lang3.StringUtils.strip(str, stripChars);
    }

    public static String stripToNull(String str) {
        return org.apache.commons.lang3.StringUtils.stripToNull(str);
    }

    public static String stripStart(final String str, final String stripChars) {
        return org.apache.commons.lang3.StringUtils.stripStart(str, stripChars);
    }

    public static String stripEnd(final String str, final String stripChars) {
        return org.apache.commons.lang3.StringUtils.stripEnd(str, stripChars);
    }

    public static String[] stripAll(final String... strs) {

        return org.apache.commons.lang3.StringUtils.stripAll(strs);
    }

    public static String[] stripAll(final String[] strs, final String stripChars) {
        return org.apache.commons.lang3.StringUtils.stripAll(strs, stripChars);
    }

    public static boolean equals(final CharSequence cs1, final CharSequence cs2) {
        return org.apache.commons.lang3.StringUtils.equals(cs1, cs2);
    }

    public static boolean equalsIgnoreCase(final CharSequence cs1, final CharSequence cs2) {
        return org.apache.commons.lang3.StringUtils.equalsIgnoreCase(cs1, cs2);
    }

    public static int compare(final String str1, final String str2) {
        return org.apache.commons.lang3.StringUtils.compare(str1,str2);
    }

    public static int compare(final String str1, final String str2, final boolean nullIsLess) {
        return org.apache.commons.lang3.StringUtils.compare(str1,str2,nullIsLess);
    }

    public static int compareIgnoreCase(final String str1, final String str2) {
        return org.apache.commons.lang3.StringUtils.compareIgnoreCase(str1,str2);
    }

    public static int compareIgnoreCase(final String str1, final String str2, final boolean nullIsLess) {
        return org.apache.commons.lang3.StringUtils.compareIgnoreCase(str1,str2,nullIsLess);
    }

    public static boolean equalsAny(final CharSequence string, final CharSequence... searchStrings) {
        return org.apache.commons.lang3.StringUtils.equalsAny(string,searchStrings);
    }

    public static boolean equalsAnyIgnoreCase(final CharSequence string, final CharSequence...searchStrings) {
        return org.apache.commons.lang3.StringUtils.equalsAnyIgnoreCase(string,searchStrings);
    }

    public static int indexOf(final CharSequence seq, final int searchChar) {
        return org.apache.commons.lang3.StringUtils.indexOf(seq,searchChar);
    }

    public static int ordinalIndexOf(final CharSequence str, final CharSequence searchStr, final int ordinal) {
        return org.apache.commons.lang3.StringUtils.ordinalIndexOf(str,searchStr,ordinal);
    }

    public static int indexOfIgnoreCase(final CharSequence str, final CharSequence searchStr) {
        return org.apache.commons.lang3.StringUtils.indexOfIgnoreCase(str,searchStr);
    }

    public static int indexOfIgnoreCase(final CharSequence str, final CharSequence searchStr, int startPos) {
        return org.apache.commons.lang3.StringUtils.indexOfIgnoreCase(str,searchStr,startPos);
    }

    public static int lastIndexOf(final CharSequence seq, final int searchChar) {
        return org.apache.commons.lang3.StringUtils.lastIndexOf(seq,searchChar);
    }

    public static int lastIndexOf(final CharSequence seq, final int searchChar, final int startPos) {
        return org.apache.commons.lang3.StringUtils.lastIndexOf(seq,searchChar,startPos);
    }

    public static int lastIndexOf(final CharSequence seq, final CharSequence searchSeq) {
        return org.apache.commons.lang3.StringUtils.lastIndexOf(seq,searchSeq);
    }

    public static boolean contains(final CharSequence seq, final CharSequence searchSeq) {
        return org.apache.commons.lang3.StringUtils.contains(seq,searchSeq);
    }
}